package com.zhoug.common3.imageloader.wrap;

import android.app.Activity;
import android.content.Context;
import android.view.View;

import com.bumptech.glide.Glide;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;

/**
 * Glid图片加载框架包装类
 *
 * @Author 35574
 * @Date 2021/9/7
 * @Description
 */
public class GlideWrap {
    private RequestManagerWrap mRequestManager;

    private GlideWrap() {
    }

    public static RequestManagerWrap with(Context context){
        return RequestManagerWrap.create(Glide.with(context));
    }

    public static RequestManagerWrap with(Activity activity){
        return RequestManagerWrap.create(Glide.with(activity));
    }

    public static RequestManagerWrap with(Fragment fragment){
        return RequestManagerWrap.create(Glide.with(fragment));
    }

    public static RequestManagerWrap with(FragmentActivity fragmentActivity){
        return RequestManagerWrap.create(Glide.with(fragmentActivity));
    }

    public static RequestManagerWrap with(View view){
        return RequestManagerWrap.create(Glide.with(view));
    }





}
